Linux Containers and Virtualization by Shashank Mohan Jain

Linux Containers and Virtualization by Shashank Mohan Jain

Author:Shashank Mohan Jain
Language: eng
Format: epub
ISBN: 9781484262832
Publisher: Apress


/* Statistics: */

Int nr_periods;

Int nr_throttled;

u64 throttled_time;

#endif

};

This structure keeps track of the runtime quota for the group. The cff_bandwith_used function is used to return a Boolean value when the check is made in the account_cfs_rq_runtime method of the fair scheduler implementation file. If no runtime quota remains, the throttle_cfs_rq method is invoked. It will dequeue the task from the run queue of the sched_entity and set the throttled flag. The function implementation is shown here:static void throttle_cfs_rq(struct cfs_rq *cfs_rq)

{

struct rq *rq = rq_of(cfs_rq);

struct cfs_bandwidth *cfs_b = tg_cfs_bandwidth(cfs_rq->tg);

struct sched_entity *se;

long task_delta, idle_task_delta, dequeue = 1;

bool empty;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.